package com.cly.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 题目类型枚举
 *
 * @author by 春风能解释
 * <p>
 * 2024/9/25
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ProblemTypeEnum {
    /**
     * 单选题
     */
    SINGLE_CHOICE(0, "单选题"),
    /**
     * 多选题
     */
    MULTIPLE_CHOICE(1, "多选题"),
    /**
     * 判断题
     */
    JUDGMENT(2, "判断题"),
    /**
     * 简答题
     */
    SHORT_ANSWER(3, "简答题");
    /**
     * 枚举值
     */
    @EnumValue
    private Integer value;
    /**
     * 展示值
     */
    @JsonValue
    private String name;
}
